import request from '@/utils/request'

// 列表
export function article_page(data) {
  return request({
    url: '/article/page',
    method: 'post',
    data: data
  })
}

// 删除
export function article_delete(data) {
  return request({
    url: '/article/delete',
    method: 'post',
    data: data
  })
}

// 新增
export function article_insert(data) {
  return request({
    url: '/article/insert',
    method: 'post',
    data: data
  })
}

// 编辑
export function article_update(data) {
  return request({
    url: '/article/update',
    method: 'post',
    data: data
  })
}

// 发布
export function article_publish(data) {
  return request({
    url: '/article/publish',
    method: 'post',
    data: data
  })
}

// 详情
export function article_detail(data) {
  return request({
    url: '/article/detail',
    method: 'post',
    data: data
  })
}

// 客户端分页查询
export function article_pageToB(data) {
  return request({
    url: '/article/pageToB',
    method: 'post',
    data: data
  })
}

// 客户端热门词汇搜索
export function article_hot(data) {
  return request({
    url: '/article/hot',
    method: 'post',
    data: data
  })
}

// 客户端文章搜索
export function article_search(data) {
  return request({
    url: '/article/search',
    method: 'post',
    data: data
  })
}

// 更新文章标签
export function article_updateTags(data) {
  return request({
    url: '/article/updateTags',
    method: 'post',
    data: data
  })
}